/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BuildData;

import java.io.FileNotFoundException;
import java.io.IOException;
import javax.xml.stream.XMLStreamException;

/**
 *
 * @author Administrator
 */
public class BuildData {

    public static void main(String argv[]) throws FileNotFoundException, XMLStreamException, IOException, ClassNotFoundException {
//        //1.Tao du lieu cho cay de gan tag cho so
//        NumTreeData ntd=new NumTreeData();
//        NumTree nt=new NumTree();
            //Tao du lieu cho cay ncom
        System.out.println("package BuildData; class BuildData");
        
        NcomTreeData ncomtd=new NcomTreeData();
        NcomTree ncomt=new NcomTree();
//        //2. Tao cac file db chua danh sach cac aswd, expn, seqn
//        LLMData llmd = new LLMData();
        //3. Tao mo hinh LLM de gan tag cho chu.
//        LetterLanguageModel llmAswd=new LetterLanguageModel();
//        LetterLanguageModel llmExpn=new LetterLanguageModel();
//        LetterLanguageModel llmSeqn=new LetterLanguageModel();
//        llmAswd.createModel("data\\llm\\aswd.db");
//        llmExpn.createModel("data\\llm\\expn.db");
//        llmSeqn.createModel("data\\llm\\seqn.db");
//        llmAswd.writeModelFile("data\\llm\\llmAswd.db");
//        llmExpn.writeModelFile("data\\llm\\llmExpn.db");
//        llmSeqn.writeModelFile("data\\llm\\llmSeqn.db");
             //   Tao file tree cho alpha
//        GreekTree greekTree=new GreekTree();
        //Tao file tree cho alpha
//        AlphaTree alphaTree=new AlphaTree();
    //4.colect expn_full cho phan mo rong
//        ColectExpnFull cef=new ColectExpnFull("trainset\\hand\\expn_hand.xml", "data\\expand\\expn_full.db");
    
        //Tao du lieu cho cay doc ngang va cheo
//        NgangCheoTreeData nct=new NgangCheoTreeData();
//        LanguageModel lm=new LanguageModel();
//        lm.createModel();
//        lm.writeModelFile();
    }
}
